import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { resolve } from "path";

// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require("path");

export default defineConfig({
  plugins: [react()],
  esbuild: {
    logOverride: { "this-is-undefined-in-esm": "silent" },
  },
  resolve: {
    alias: {
      "@": path.join(__dirname, "src"),
    },
  },
});
